<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>新建咨询 - 购车咨询</title>
    <link rel="stylesheet" th:href="@{/css/style.css}" />
</head>
<body>
<div class="container">
    <h1>发起购车咨询</h1>
    <form th:action="@{/consult/new}" th:object="${form}" method="post">
        <div class="field"><label>预算下限</label><input type="number" th:field="*{budgetMin}" required /></div>
        <div class="field"><label>预算上限</label><input type="number" th:field="*{budgetMax}" required /></div>
        <div class="field"><label>偏好车型</label>
            <select th:field="*{bodyType}" required>
                <option value="SUV">SUV</option>
                <option value="轿车">轿车</option>
                <option value="MPV">MPV</option>
            </select>
        </div>
        <div class="field"><label>主要使用场景</label>
            <select th:field="*{scenes}" required>
                <option value="通勤">通勤</option>
                <option value="家庭">家庭</option>
                <option value="商务">商务</option>
            </select>
        </div>
        <div class="field"><label>燃料类型偏好</label>
            <select th:field="*{fuelType}" required>
                <option value="燃油">燃油</option>
                <option value="电动">电动</option>
                <option value="混动">混动</option>
            </select>
        </div>
        <div class="field"><label>品牌偏好</label><input type="text" th:field="*{brandPreference}" /></div>
        <div><button type="submit" class="btn">提交咨询</button> <a href="/dashboard" class="btn">返回</a></div>
    </form>
</div>
</body>
</html>